package com.uflower.product.feign;

import com.uflower.common.to.es.SkuEsModel;
import com.uflower.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@FeignClient(name = "uflower-search",url = "http://localhost:10015")
public interface SearchFeignService {

    @RequestMapping("/es/product/status/up")
    public R statusUp(@RequestBody List<SkuEsModel> esModels);
}
